#include<iostream>
#include<algorithm>
using namespace std;

int main()
{
	int size = 0;
	cin >> size;
	int i = 0;
	int* a = new int[size];
	while (size)
	{
		size--;
		cin >> a[i];
		i++;
	}
	sort(a,a+sizeof(int)*i);
	for (auto i =*a;a<= a + sizeof(int) * i;a++)
	{
		cout << i;
	}
	return 0;
}